#include <jni.h>
#include <string>
#include "Test.h"

extern "C" JNIEXPORT jstring JNICALL
Java_com_ok_apm_android_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}
extern "C"
JNIEXPORT jstring JNICALL
Java_com_ok_apm_android_MainActivity_stringFromJNI1(JNIEnv *env, jobject thiz) {
    Test test;
    test.setStr();
    std::string hello = "Hello from C++1";
    return env->NewStringUTF(hello.c_str());
}